<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>
<%@ Assembly Name="zevenseas.LifeCycleManagement.ApplicationPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4306074270f0265a" %>
<%@ Page Language="C#" MasterPageFile="~/_admin/admin.master" Inherits="zevenseas.LifeCycleManagement.ApplicationPages.ConfigTimerJobs" %>

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="SchedulePicker" src="~/_controltemplates/SchedulePicker.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls"  Assembly="Microsoft.SharePoint, Version=12.0.0.0,  Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>


<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>

<asp:Content ID="Content1" ContentPlaceHolderId="PlaceHolderPageTitle" runat="server" >Lifecycle Management Administration Page | Timer job Scheduling
<asp:Literal ID="LiteralPageTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderId="PlaceHolderMain" runat="server" >
  <style type="text/css">
    table.ms-propertysheet {
      height: 100%;
    }
  </style>
  <table cellspacing="0" cellpadding="0" border="0" class="ms-settingsframe">
    <tr>
      <td width="100%" colspan="4" style="padding-top: 0px;">
        <table class="ms-pageinformation" width="100%" cellpadding="0" cellspacing="0">
          <tr>
            <td valign="top" style="padding: 10px;" width="100%" height="100px">
              <table height="100%" width="100%" id="idItemHoverTable">
                <tr>
                  <th scope="col" colspan="2" style="padding-bottom: 8px;">
                    <span class="ms-linksectionheader">
                      <h3 class="ms-standardheader">
                        <SharePoint:EncodedLiteral
                          ID="EncodedLiteral3"
                          runat="server"
                          Text="Timer job Scheduling"
                          EncodeMethod='HtmlEncode' />
                      </h3>
                    </span>
                  </th>
                </tr>
                 <tr>
                      <th scope="col" nowrap="nowrap">
                        <SharePoint:EncodedLiteral ID="EncodedLiteral7" runat="server" Text="Statistics Timer Job" EncodeMethod='HtmlEncode' />
                      </th>
                      <td dir="ltr">
                        <%=GatherLastRunTime%>
                      </td>                      
                    </tr>
                    <tr>
                        <th scope="col" nowrap="nowrap">
                            <SharePoint:EncodedLiteral ID="EncodedLiteral8" runat="server" Text="Maintenance Timer Job" EncodeMethod='HtmlEncode' />
                        </th>
                        <td dir="ltr">
                            <%=ActionLastRunTime%>
                        </td>                       
                    </tr>                     
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td valign="top" style="padding: 4px 0px 4px 0px;" height="100%">
  	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
           <wssuc:InputFormSection Title="WebApplication selection" id="fmWebApplication"
            Description="Select the Web Application where you would like to configure the Statistics Gathering Timer job" runat="server">		
            <template_inputformcontrols>            
              <wssuc:InputFormControl runat="server">
                <Template_Control>
			        <SharePoint:WebApplicationSelector ID="webApplicationSelector" runat="server" />
                </Template_Control>
              </wssuc:InputFormControl> 
               </template_inputformcontrols> 
          </wssuc:InputFormSection>           
          <wssuc:InputFormSection Title="Statistics Gathering Timer Job Schedule" id="fmGatherTimerjob"
            Description="Set the schedule for the job which gatherers the necessary statistics from Sites across the current Web Application. Please run this timerjob once per week, ideally during off-peak hours" runat="server">		
             <template_inputformcontrols>
              <wssuc:InputFormControl LabelText="" runat="server">
                <Template_Control>                    
			        <wssuc:SchedulePicker id="SchedulerGather" Weekly="True" Monthly="True" Enabled="True" EnableStateView="True" runat="server"/>                   
                </Template_Control>
              </wssuc:InputFormControl>
	     </template_inputformcontrols>            
        </wssuc:InputFormSection>

	    <wssuc:InputFormSection Title="Maintenance Timer Job Schedule" id="fmActionTimerjob"
            Description="Set the schedule for the job that determines which action to take on those sites found in the Unused Sites Overview page. This should be scheduled to run at least one day after the Statistics Gathering Job and during off-peak hours." runat="server">		
             <template_inputformcontrols>
              <wssuc:InputFormControl LabelText="" runat="server">
		        <Template_Control>
			        <wssuc:SchedulePicker id="SchedulerAction" Weekly="True" Monthly="True" Enabled="True" EnableStateView="True" runat="server"/>                   
                </Template_Control>
              </wssuc:InputFormControl> 
            </template_inputformcontrols>            
          </wssuc:InputFormSection>
          
          <wssuc:ButtonSection runat="server">
            <Template_Buttons>
                <asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="OnClickOK" Text="<%$Resources:wss,multipages_okbutton_text%>" id="btnOk" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
            </Template_Buttons>
        </wssuc:ButtonSection> 
        </table>
	</td>
    </tr>
  </table>
<asp:Label id="output" runat="server"/>
</asp:Content>